﻿using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Geodatabase;
using Inovout.Gis.Geometry;

namespace Inovout.ArcGis
{
    public class PolygonInfo : GeometryInfo,IPolygonInfo
    {
        #region Constructor

        internal protected PolygonInfo(ArcGisRow row)
            : base(row)
        {
        }
        internal protected PolygonInfo(IPolygon arcPolygon)
            : base(arcPolygon)
        {
        }

        #endregion

        protected override double CalculateAreaFromGeometry()
        {
            //IArea已经allArea中处理了。
            return CalculateBallArea.Instance.BallArea(Shape as IPolygon);
        }
    }
}
